package org.zhangsh.spring.initializingbean;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

/**
 * </p>
 *
 * @author zhangsh
 * @version 1.0.0
 * @since 2019-03-27
 */
@Component
public class DemoInitializingBean implements InitializingBean {

    public DemoInitializingBean(){
        System.out.println("我是InitializingBean init...");
    }

    @Override
    public void afterPropertiesSet() throws Exception {

        System.out.println("InitializingBean(afterPropertiesSet)方法实例化...");

    }
}
